package com.skivingcloud.admin.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 组织机构表
 * </p>
 *
 * @author skivingcloud
 * @since 2022-01-29
 */
@TableName("sys_org")
@ApiModel(value = "SysOrg对象", description = "组织机构表")
public class SysOrg implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("版本")
    private Integer version;

    @ApiModelProperty("自定义编号")
    private String orgCode;

    @ApiModelProperty("机构名称")
    private String orgName;

    @ApiModelProperty("简称")
    private String shortName;

    @ApiModelProperty("租户")
    private String tenantId;

    @ApiModelProperty("级别")
    private Integer orgLevel;

    @ApiModelProperty("上级id，顶级时该值为0")
    private String parentId;

    @ApiModelProperty("机构状态:1-正常 2-暂停")
    private String orgStatus;

    @ApiModelProperty("是否是叶子节点（0-叶子 1-父节点）")
    private String isParent;

    @ApiModelProperty("机构分类：1-虚拟机构、2-实体机构")
    private String orgType;

    @ApiModelProperty("扩展级别，例如：1-公司、2-部门、9-其他")
    private String orgRank;

    @ApiModelProperty("排序")
    private Integer ordernum;

    @ApiModelProperty("创建人")
    private String creater;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("最后修改人")
    private String modUser;

    @ApiModelProperty("修改时间")
    private LocalDateTime modTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }
    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }
    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
    public Integer getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(Integer orgLevel) {
        this.orgLevel = orgLevel;
    }
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    public String getOrgStatus() {
        return orgStatus;
    }

    public void setOrgStatus(String orgStatus) {
        this.orgStatus = orgStatus;
    }
    public String getIsParent() {
        return isParent;
    }

    public void setIsParent(String isParent) {
        this.isParent = isParent;
    }
    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }
    public String getOrgRank() {
        return orgRank;
    }

    public void setOrgRank(String orgRank) {
        this.orgRank = orgRank;
    }
    public Integer getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(Integer ordernum) {
        this.ordernum = ordernum;
    }
    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getModUser() {
        return modUser;
    }

    public void setModUser(String modUser) {
        this.modUser = modUser;
    }
    public LocalDateTime getModTime() {
        return modTime;
    }

    public void setModTime(LocalDateTime modTime) {
        this.modTime = modTime;
    }

    @Override
    public String toString() {
        return "SysOrg{" +
            "id=" + id +
            ", version=" + version +
            ", orgCode=" + orgCode +
            ", orgName=" + orgName +
            ", shortName=" + shortName +
            ", tenantId=" + tenantId +
            ", orgLevel=" + orgLevel +
            ", parentId=" + parentId +
            ", orgStatus=" + orgStatus +
            ", isParent=" + isParent +
            ", orgType=" + orgType +
            ", orgRank=" + orgRank +
            ", ordernum=" + ordernum +
            ", creater=" + creater +
            ", createTime=" + createTime +
            ", modUser=" + modUser +
            ", modTime=" + modTime +
        "}";
    }
}
